package cn.wolfcode.crm.service;


import cn.wolfcode.crm.domain.Dic;
import cn.wolfcode.crm.domain.Dicitem;
import cn.wolfcode.crm.query.DicitemQueryObject;
import cn.wolfcode.crm.query.QueryObject;
import cn.wolfcode.crm.util.PageResult;

import java.util.List;

public interface IDicService {
    void changebyitemid(Long id);
    void changeByPrimaryKey(Long id);
    Dic selectByPrimaryKey(Long id);
    List<Dic> selectAll();
    int insert(Dic entity);
    int insert(Dicitem entity);
    int updateByPrimaryKey(Dic entity);
    int updateByPrimaryKey(Dicitem entity);


    PageResult query(QueryObject qo);
   PageResult queryitem(DicitemQueryObject qo);

    /**
     * 根据数字词典目录的sn查询数据词典明细
     * @param sn    数字词典目录的编号
     * @return 返回该编号的词典明细
     */
    List<Dicitem> selectItemBySn(String sn);


}
